:root,
body,
html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, #007dff 0%, #6a11cb 100%);
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: rgba(0, 125, 255, 0.2);
  backdrop-filter: blur(5px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.college-info {
  display: flex;
  align-items: center;
}

.college-icon {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.college-name {
  font-size: 22px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.time-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.main-content {
  flex: 1;
  display: flex;
  padding: 10px;
  overflow: hidden;
}

.left-panel {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  margin-right: 10px;
  height: 100%;
  box-sizing: border-box;
}

.right-panel {
  width: 70%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
}

.card {
  background-color: #fff;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.lab-card {
  height: 40%;
}

.notice-card {
  height: calc(60% - 10px);
}

.card-header {
  display: flex;
  align-items: center;
  margin-top: 2px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

/* 通知公告卡片内容美化 */
.notice-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 0 0 0;
}

.lab-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 0 0 0;
}

.lab-meta-row {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  width: 100%;
}

.lab-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 13px;
  color: #007dff;
  font-weight: 600;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
}

.lab-label {
  background: linear-gradient(90deg, #e3e6ff 0%, #f3f0ff 100%);
  color: #6a11cb;
  width: 80px;
  border-radius: 8px;
  padding: 2px 8px;
  margin-right: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lab-value {
  color: #333;
  font-weight: 500;
  margin-right: 10px;
  font-size: 16px;
}

.notice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 13px;
  color: #6a11cb;
  font-weight: 600;
  align-items: center;
}

.notice-label {
  background: linear-gradient(90deg, #e3e6ff 0%, #f3f0ff 100%);
  color: #6a11cb;
  border-radius: 8px;
  padding: 2px 8px;
  margin-right: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.notice-value {
  color: #333;
  font-weight: 500;
  margin-right: 10px;
  font-size: 18px;
}

.notice-content {
  margin-top: 6px;
  background: #f9f7fd;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 4px 0 rgba(106, 17, 203, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.notice-content-title {
  color: #6a11cb;
  font-weight: 700;
  font-size: 13px;
  margin-right: 2px;
}

.notice-content-text {
  color: #444;
  font-size: 18px;
  line-height: 1.7;
  word-break: break-all;
}

.title-dot {
  display: inline-block;
  width: 5px;
  height: 22px;
  border-radius: 30%;
  background-color: #6a11cb;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.lab-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.lab-title {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(90deg, #6a11cb 0%, #007dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 16px rgba(106, 17, 203, 0.18), 0 1px 0 hsla(278, 81%, 69%, 0.468);
  letter-spacing: 2px;
  padding-left: 2px;
  padding-right: 2px;
  border-radius: 4px;
  display: inline-block;
}

.notice-title,
.card-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.card-titles {
  margin-left: auto;
  font-size: 15px;
  font-weight: bold;
  color: #333;
}

.card-body {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 8px;
  color: #555;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #eee;
  margin-top: auto;
  min-height: 30px;
}

.notice-footer {
  background: linear-gradient(90deg, #f8fafd 0%, #fcfbfd 100%);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 1px 4px 0 rgba(106, 17, 203, 0.04);
  padding: 8px 10px 4px 10px;
  margin: -8px -15px -6px -15px;
  border-top: 1.5px solid #e3e6ff;
}

.page-btn {
  padding: 4px 14px 4px 10px;
  border: none;
  border-radius: 22px;
  background: linear-gradient(90deg, #e3e6ff 0%, #f3f0ff 100%);
  color: #6a11cb;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 2px 0 rgba(106, 17, 203, 0.04);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.page-btn svg {
  display: inline-block;
  vertical-align: middle;
}

.page-btn.prev svg {
  margin-right: 2px;
}

.page-btn.next svg {
  margin-left: 2px;
}

.page-btn:hover {
  background: linear-gradient(90deg, #d0e7ff 0%, #e3e6ff 100%);
  color: #007dff;
  box-shadow: 0 2px 8px 0 rgba(106, 17, 203, 0.10);
}

.page-info {
  font-size: 13px;
  color: #6a11cb;
  font-weight: 700;
  background: #f3f0ff;
  border-radius: 8px;
  padding: 2px 12px;
  margin: 0 8px;
  letter-spacing: 1px;
}

.page-btn {
  padding: 4px 10px;
  border: 1px solid #cccccc3e;
  border-radius: 10px;
  background-color: #f0f0f0;
  color: #6a11cb;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-btn:hover {
  background-color: #e0e0e0;
}

.schedule-card {
  width: 100%;
  height: 100%;
}

/* 星期选择器样式 */
.week-selector {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 5px;
  background-color: #f5f5f5;
  border-radius: 40px;
}

.day-btn {
  flex: 1;
  margin: 0 3px;
  padding: 8px 0;
  border: none;
  border-radius: 40px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day-btn.active {
  background-color: #6a11cb;
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(106, 17, 203, 0.3);
}

.day-btn:hover:not(.active) {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* 课程容器样式：固定卡片尺寸，不受数量影响 */

/* 优化课程卡片容器样式 */
.courses-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 18px 10px 32px 10px;
  height: auto;
  min-height: 180px;
  overflow-y: visible;
  background: linear-gradient(120deg, #f8fafd 0%, #fcfbfd 100%);
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(106, 17, 203, 0.08);
}

/* 高级感课程卡片样式 */
.course-item {
  background: linear-gradient(135deg, #fff 60%, #e3e6ff 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgb(184 156 214 / 13%), 0 1.5px 4px 0 rgba(0, 0, 0, 0.04);
  padding: 18px 16px 14px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
  border: 1.5px solid #f0f0f7;
  min-height: 120px;
  height: auto;
}

.course-item:hover {
  box-shadow: 0 8px 32px 0 rgba(106, 17, 203, 0.22), 0 2px 8px 0 rgba(0, 0, 0, 0.08);
  transform: translateY(-4px) scale(1.03);
  background: linear-gradient(135deg, #f7f8ff 60%, #e3e6ff 100%);
}

.course-section {
  font-size: 13px;
  color: #7c4dff;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 1px;
  background: #f3f0ff;
  padding: 2px 10px;
  border-radius: 8px;
  display: inline-block;
}

.course-name {
  font-size: 18px;
  font-weight: 700;
  color: #2d1e5f;
  margin-bottom: 6px;
  margin-top: 2px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  display: block;
  text-shadow: 0 1px 0 #f3f0ff;
  word-break: break-all;
  white-space: pre-line;
  overflow-wrap: break-word;
}

.teacher-time {
  font-size: 13px;
  color: #5e35b1;
  line-height: 1.7;
  margin-top: 2px;
  font-weight: 500;
  word-break: break-all;
  white-space: pre-line;
  overflow-wrap: break-word;
  background: #f9f7fd;
  border-radius: 18px;
  padding: 6px 10px 4px 10px;
  box-shadow: 0 1px 2px 0 rgba(106, 17, 203, 0.04);
  box-sizing: border-box;
  width: 100%;
  display: block;
}

.course-item::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #e3e6ff 0%, #fff0 80%);
  z-index: 0;
}

.course-item>* {
  z-index: 1;
}

/* 无课程时显示样式：居中占位 */
.no-courses {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 0;
  color: #999;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* 页脚样式：保持整体主题一致性 */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: rgba(0, 125, 255, 0.2);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.os-name,
.version {
  font-size: 14px;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* 适配小屏幕：确保在不同尺寸下布局正常 */
@media (max-width: 1200px) {
  .courses-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
  }

  .left-panel,
  .right-panel {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .courses-container {
    grid-template-columns: repeat(1, 1fr);
    gap: 14px;
    padding: 8px 0;
  }
}

/* 页脚标语美观样式 */

.footer-slogan {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 125, 255, 0.25), 0 0 0px rgba(247, 251, 255);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 2px 0;
  border-radius: 6px;
  transition: background 0.4s;
  user-select: none;
}

.footer-slogan:hover {
  background: linear-gradient(90deg, #007dff 0%, #6a11cb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}